const User = require('../models/user.js')
exports.save = async (ctx, next) => {
    let user = new User({
        name: 'Hikaru',
        age:  18,
       })
       user = await user.save()
       ctx.body =  user
}
exports.index = async (ctx,next)=>{
    let users = await User.find()
     ctx.body = {
         users
     }
}